/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: LianBao
 * Date: 2024-09-14
 * Time: 14:58
 */
public class Main2 {
    public static void main(String[] args) {
        MySignalList list = new MySignalList();

        list.addLast(1);
        list.addLast(2);
        list.addLast(3);
        list.addLast(4);
        list.addLast(5);
        list.write();

//        list.deleteFirst();
//        list.write();
//        list.deleteFirst();
//        list.write();
//        list.deleteFirst();
//        list.write();
//        list.deleteFirst();
//        list.write();
//        list.deleteFirst();
//        list.write();
//        list.deleteFirst();
//        list.write();


        list.deleteLast();
        list.write();
        list.deleteLast();
        list.write();
        list.deleteLast();
        list.write();
        list.deleteLast();
        list.write();

        list.deleteLast();
        list.write();
        list.deleteLast();
        list.write();

    }
}
